<template>
  <div>
    <div class="seed_top_banner">
      <div class="seed_back_arrow" @click="back">
        <svg class="icon" aria-hidden="true">
          <use xlink:href="#icon-zuo"></use>
        </svg>
      </div>
      <div class="seed_page_title"><span>设置</span></div>
      <div class="seed_page_tool"></div>
    </div>
    <!--列表-->
    <div class="seed_my_set_mysecond">
      <div class="seed_my_set_line"></div>
      <router-link :to="{name:'my-setpwd'}">
        <div class="seed_my_set_list">
            <p>修改密码</p>
            <img src="../../assets/images/jt.png" class="seed_my_set_jt" style="width: 0.5rem">
        </div>
      </router-link>
      <div class="seed_my_set_line"></div>
      <div class="seed_my_set_list">
        <p>当前版本</p>
        <!--<img src="../../assets/images/jt.png" class="seed_my_set_jt" style="width: 0.5rem">-->
        <span class="seed_my_set_jt" style="width: auto">V1.0.0</span>
      </div>
    </div>
    <div class="seed_my_set_logout" @click="logout">退出登录</div>
  </div>
</template>
<script>
export default {
  data () {
    return {
      value_one: false,
      value_two: false,
      value_three: false
    }
  },
  created () {},
  methods: {
    back () {
      this.$router.push({name: 'my-my'})
    },
    logout () {
      this.$MessageBox.confirm('确定要退出登录吗?').then(action => {
        this.$utils.setCookie('token', '', -1)
        this.$toast('已退出登录')
        this.$request.logout().then(data => {
          this.$router.push({name: 'passport-login'})
        })
      })
    }
  }
}
</script>
